#include "stm32f10x.h"                  // Device header
#include "Delay.h"
#include "OLED.h"
#include "PWM.h"
#include "IC.h"
int main(void){
	OLED_Init();

	PWM_Init();
	IC_Init();
	//创建新的模块，来捕获输入
	
	OLED_ShowString(1,1,"Freq:00000Hz");
		OLED_ShowString(2,1,"Duty:00%");
		PWM_SetPSC(720-1); //目前频率是1kHz
	PWM_set(50); //目前占空比是50%
	while(1){
		OLED_ShowNum(1,6,IC_GetFreq(),5);
		OLED_ShowNum(2,6,IC_GetDuty(),3);
	}
}
